package com.activity.shop;

import android.os.Bundle;

import com.activity.fragment.AttendanceSetFragment;
import com.activity.fragment.ClockFragment;
import com.activity.fragment.DefineQueryFragment;
import com.activity.fragment.MonthRecordFragment;
import com.example.apple.ddhr_new.R;
import com.example.apple.ddhr_new.activity.home.PageActivity;

import java.util.ArrayList;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

public class ClockRecordActivity extends PageActivity {

    private String[] mTitleDataList;
    private ArrayList<Fragment> fragments =new ArrayList();
    @Override
    public String[] titles() {
        if(mTitleDataList==null){
            mTitleDataList = new String[]{getString(R.string.dangyue_jilu),getString(R.string.zidingyi_chaxun)};
        }

        return mTitleDataList;
    }

    @Override
    public ArrayList<Fragment> fragments() {

        if(fragments.size()==0){

            fragments.add(new MonthRecordFragment());
            fragments.add(new DefineQueryFragment());
        }

        return  fragments;
    }

    @Override
    protected int titleText() {
        return R.string.daka_jilu;
    }

    @Override
    protected void created(@Nullable Bundle savedInstanceState) {
        super.created(savedInstanceState);

    }
}
